package com.ruoyi.material.service.impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.material.domain.VimsImageInfo;
import com.ruoyi.material.mapper.VimsImageInfoMapper;
import com.ruoyi.material.service.IVimsImageInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * vims平台截图信息Service业务层处理
 * 
 * @author cyw
 * @date 2021-07-28
 */
@Service
public class VimsImageInfoServiceImpl implements IVimsImageInfoService 
{
    @Autowired
    private VimsImageInfoMapper vimsImageInfoMapper;

    /**
     * 查询vims平台截图信息
     * 
     * @param id vims平台截图信息ID
     * @return vims平台截图信息
     */
    @Override
    public VimsImageInfo selectVimsImageInfoById(String id)
    {
        return vimsImageInfoMapper.selectVimsImageInfoById(id);
    }

    /**
     * 查询vims平台截图信息列表
     * 
     * @param vimsImageInfo vims平台截图信息
     * @return vims平台截图信息
     */
    @Override
    public List<VimsImageInfo> selectVimsImageInfoList(VimsImageInfo vimsImageInfo)
    {
        return vimsImageInfoMapper.selectVimsImageInfoList(vimsImageInfo);
    }

    /**
     * 新增vims平台截图信息
     * 
     * @param vimsImageInfo vims平台截图信息
     * @return 结果
     */
    @Override
    public int insertVimsImageInfo(VimsImageInfo vimsImageInfo)
    {
        vimsImageInfo.setCreateTime(DateUtils.getNowDate());
        return vimsImageInfoMapper.insertVimsImageInfo(vimsImageInfo);
    }

    /**
     * 修改vims平台截图信息
     * 
     * @param vimsImageInfo vims平台截图信息
     * @return 结果
     */
    @Override
    public int updateVimsImageInfo(VimsImageInfo vimsImageInfo)
    {
        vimsImageInfo.setUpdateTime(DateUtils.getNowDate());
        return vimsImageInfoMapper.updateVimsImageInfo(vimsImageInfo);
    }

    /**
     * 批量删除vims平台截图信息
     * 
     * @param ids 需要删除的vims平台截图信息ID
     * @return 结果
     */
    @Override
    public int deleteVimsImageInfoByIds(String[] ids)
    {
        return vimsImageInfoMapper.deleteVimsImageInfoByIds(ids);
    }

    /**
     * 删除vims平台截图信息信息
     * 
     * @param id vims平台截图信息ID
     * @return 结果
     */
    @Override
    public int deleteVimsImageInfoById(String id)
    {
        return vimsImageInfoMapper.deleteVimsImageInfoById(id);
    }
}
